package models

import (
	"time"

	"go.mongodb.org/mongo-driver/bson/primitive"
)

// Comment 评论模型
type Comment struct {
	ID        primitive.ObjectID  `bson:"_id,omitempty"    json:"id"`
	ArticleID primitive.ObjectID  `bson:"articleId"        json:"articleId"`
	AuthorID  primitive.ObjectID  `bson:"authorId"         json:"authorId"`
	ParentID  *primitive.ObjectID `bson:"parentId,omitempty" json:"parentId,omitempty"`
	Content   string              `bson:"content"          json:"content"`
	CreatedAt time.Time           `bson:"createdAt"        json:"createdAt"`
}
